package cn.xej.health.team.dao;

import cn.xej.health.team.entity.Team;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author xej
 */
@Mapper
public interface TeamDao extends BaseMapper<Team> {

    /**
     * 查询所有团队
     * @param startNum
     * @param endNum
     * @param searchName
     * @return
     */
    List<Team> queryTeamList(@Param("startNum")Integer startNum,@Param("endNum")Integer endNum,@Param("searchName")String searchName);

    /**
     * 获取团队树
     * @param did
     * @return
     */
    List<Team> queryTeamTree(@Param("did") Integer did);
}
